home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
demos
/
GL
/
ideas
/
f.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
4KB
|
158 lines
/*
* Copyright 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#include <gl.h>
float f_data[][2] = {
{0.157570-3.0, 0.105155-2.0},
{1.820803-3.0, 0.736082-2.0},
{2.030896-3.0, 0.525773-2.0},
{2.731205-3.0, 1.507216-2.0},
{2.906282-3.0, 1.139175-2.0},
{3.378991-3.0, 2.611340-2.0},
{4.009269-3.0, 3.014433-2.0},
{4.429454-3.0, 5.730928-2.0},
{5.042224-3.0, 5.783505-2.0},
{5.269825-3.0, 10.252578-2.0},
{6.092688-3.0, 10.708247-2.0},
{5.917611-3.0, 12.758763-2.0},
{6.915551-3.0, 13.635052-2.0},
{6.565396-3.0, 14.388659-2.0},
{7.370752-3.0, 14.686598-2.0},
{7.003089-3.0, 15.159794-2.0},
{7.720906-3.0, 15.300000-2.0},
{7.633368-3.0, 15.668041-2.0},
{8.403708-3.0, 15.930928-2.0},
{9.401648-3.0, 16.596907-2.0},
{9.261586-3.0, 16.211340-2.0},
{9.874356-3.0, 16.719587-2.0},
{10.136972-3.0, 16.228867-2.0},
{10.469619-3.0, 16.789690-2.0},
{10.854789-3.0, 16.228867-2.0},
{11.064881-3.0, 16.667011-2.0},
{11.169928-3.0, 16.369072-2.0},
{3.956746-3.0, 10.988660-2.0},
{5.147271-3.0, 11.479382-2.0},
{5.654995-3.0, 11.006186-2.0},
{5.812564-3.0, 11.970103-2.0},
{6.127703-3.0, 11.023711-2.0},
{6.495366-3.0, 11.461856-2.0},
{7.230690-3.0, 11.006186-2.0},
{7.318229-3.0, 11.321650-2.0},
{7.983522-3.0, 11.198969-2.0},
{8.106076-3.0, 11.426805-2.0},
{8.613800-3.0, 11.584537-2.0},
};
draw_f() {
bgntmesh();
v2f(f_data[0]);
v2f(f_data[1]);
v2f(f_data[2]);
v2f(f_data[3]);
v2f(f_data[4]);
v2f(f_data[5]);
v2f(f_data[6]);
v2f(f_data[7]);
v2f(f_data[8]);
v2f(f_data[9]);
v2f(f_data[10]);
v2f(f_data[11]);
v2f(f_data[12]);
v2f(f_data[13]);
v2f(f_data[14]);
v2f(f_data[15]);
v2f(f_data[16]);
v2f(f_data[17]);
v2f(f_data[18]);
v2f(f_data[19]);
v2f(f_data[20]);
v2f(f_data[21]);
v2f(f_data[22]);
v2f(f_data[23]);
v2f(f_data[24]);
v2f(f_data[25]);
v2f(f_data[26]);
endtmesh();
bgntmesh();
v2f(f_data[27]);
v2f(f_data[28]);
v2f(f_data[29]);
v2f(f_data[30]);
v2f(f_data[31]);
v2f(f_data[32]);
v2f(f_data[33]);
v2f(f_data[34]);
v2f(f_data[35]);
v2f(f_data[36]);
v2f(f_data[37]);
endtmesh();
bgnline();
v2f(f_data[0]);
v2f(f_data[2]);
v2f(f_data[4]);
v2f(f_data[6]);
v2f(f_data[8]);
v2f(f_data[10]);
v2f(f_data[12]);
v2f(f_data[14]);
v2f(f_data[16]);
v2f(f_data[18]);
v2f(f_data[20]);
v2f(f_data[22]);
v2f(f_data[24]);
v2f(f_data[26]);
v2f(f_data[25]);
v2f(f_data[23]);
v2f(f_data[21]);
v2f(f_data[19]);
v2f(f_data[17]);
v2f(f_data[15]);
v2f(f_data[13]);
v2f(f_data[11]);
v2f(f_data[9]);
v2f(f_data[7]);
v2f(f_data[5]);
v2f(f_data[3]);
v2f(f_data[1]);
v2f(f_data[0]);
endline();
bgnline();
v2f(f_data[27]);
v2f(f_data[29]);
v2f(f_data[31]);
v2f(f_data[33]);
v2f(f_data[35]);
v2f(f_data[37]);
v2f(f_data[36]);
v2f(f_data[34]);
v2f(f_data[32]);
v2f(f_data[30]);
v2f(f_data[28]);
v2f(f_data[27]);
endline();
}